package _17作业._抽象类t1;

public class Rooster extends Animal{

    public Rooster() {
    }

    public Rooster(int age, String color) {
        super(age, color);
    }

    @Override
    public void eat() {
        System.out.println(getAge()+"岁的"+getColor()+"的公鸡在啄米");
    }

    public void crow(){
        System.out.println(getAge()+"岁的"+getColor()+"的公鸡在打鸣");
    }
}
